# Maintainer: Konstantin Podsvirov <konstantin@podsvirov.su>

_realname=neovim
pkgbase=mingw-w64-nodejs-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-nodejs-${_realname}"
pkgver=5.3.0
pkgrel=1
pkgdesc='Nvim Node.js client and plugin host (mingw-w64)'
arch=('any')
mingw_arch=('ucrt64' 'clang64' 'clangarm64')
url='https://neovim.io/node-client/'
msys2_repository_url='https://github.com/neovim/node-client'
license=('spdx:MIT')
depends=("${MINGW_PACKAGE_PREFIX}-nodejs")
source=("https://registry.npmjs.org/${_realname}/-/${_realname}-${pkgver}.tgz")
sha256sums=('fe840cf26b904cb98830fa5723c62b9e04c120a04a8141784377ceecdd5f9661')
noextract=("${_realname}-${pkgver}.tgz")

package() {
  "${MINGW_PREFIX}"/bin/npm install -g \
    --cache "${srcdir}/npm-cache" \
    --prefix "${pkgdir}${MINGW_PREFIX}" \
    "${srcdir}/${_realname}-${pkgver}.tgz"
}
